<?php

/**
 * @author Christoph Vieth <mail@christoph-vieth.de>
 */
include_once 'classes/renderEngine.php';

/**
 * HTML data render engine
 */
class outputPlain implements renderEngine {

    /**
     * Data for template
     * @var array
     */
    private $data;

    public function __construct(array $data) {
        if (is_array($data)) {
            $this->data = $data;
            return true;
        } else
            return false;
    }

    public function __destruct() {
        $this->data = NULL;
    }

    public function render() {
        foreach ($this->data as $value) {
            echo $value;
        }
        return NULL;
    }

}

?>
